<%@page import="cz.acies.genea.data.process.PersonProcessor"%>
<%@page import="org.apache.commons.lang3.time.DateFormatUtils"%>
<%@page import="cz.acies.genea.data.dao.GedPersonDAO"%>
<%@page import="org.apache.commons.beanutils.BeanUtils"%>
<%@ page language="java" session="true" contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.google.gson.*"%>

<%@ page pageEncoding="UTF-8" %>
<% request.setCharacterEncoding("UTF-8");  %>
<% response.setCharacterEncoding("UTF-8");  %>
<%
Gson gson = new Gson();
Map<String, Object> params = new HashMap<String, Object>();
Enumeration<String> e = request.getParameterNames();
while (e.hasMoreElements()) {
	String key =  e.nextElement();
	params.put(key, request.getParameter(key));
}
//String processId = (String) params.get("processId");
//System.out.println("params:"+params);
PersonProcessor processor = new PersonProcessor();
processor.setRequest(request);
processor.setResponse(response);
processor.executeCommand(params);

/*
if (processId.equals("reloadDetail")) {
	PersonProcessor processor = new PersonProcessor();
	processor.setRequest(request);
	processor.setResponse(response);
	processor.reloadDetail(params);
	
} else if (processId.equals("")) {
} else if (processId.equals("")) {
} else if (processId.equals("")) {
} else if (processId.equals("")) {
}
*/
%>
